<?php

class Appraisal extends AppModel {

    var $name = 'Appraisal';
    var $actsAs = array('Logable' => array(
            'userModel' => 'User',
            'userKey' => 'user_id',
            'change' => 'full', // options are 'list' or 'full'
            'description_ids' => TRUE // options are TRUE or FALSE
            ));
    var $hasMany = array('PropertyAppraisal' => array(
            'className' => 'PropertyAppraisal'
            ));
    var $belongsTo = array(
        'Proyect' => array(
            'model' => 'Proyect'
        )
    );
    var $validate = array(
        'distancia_perimetro_urbano' => array(
            'numeric' => array(
                'rule' => 'numeric',
                'allowEmpty' => false,
                'message' => 'Solo valores númericos'
            ),
        ),
    );

}

?>